<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
<h:form>
<p:commandLink style="float: right;"  action="#{logoutBean.logout}" value="Logout" />
</h:form>
	<div id="menu">
		<h:form>
			<ul>
				<li><a href="home.xhtml">HOME</a></li>
				<li>
					<p:commandLink id="tutti_i_viaggi" action="#{PackageMgr.goToAllTravels()}" value="TUTTI I VIAGGI" />   
				</li>
				<li>
					<p:commandLink id="il_mio_profilo" action="#{UserMgr.getUserAndAddress()}" value="IL MIO PROFILO" />   
				</li>
			</ul>
		</h:form>
    </div>
<h1>IL MIO PROFILO</h1>
	<h:form>
       <h:panelGrid columns="2">
       		<h:outputLabel value="Username: " />
           	<h:outputText value="#{UserMgr.currentUser.username}" />
           	
           	<h:outputLabel value="Password: " />
           	<h:outputText value="#{UserMgr.currentUser.password}" />
           	
           	<h:outputLabel value="Nome: " />
           	<h:outputText value="#{UserMgr.currentUser.name}" />
           	
           	<h:outputLabel value="Cognome: " />
           	<h:outputText value="#{UserMgr.currentUser.surname}" />
           	
           	<h:outputLabel value="Email:  " />
           	<h:outputText value="#{UserMgr.currentUser.email}" />
           	
           	<h:outputLabel value="Via: " />
           	<h:outputText value="#{UserMgr.currentAddress.street}" />
           	
           	<h:outputLabel value="Numero civico: " />
           	<h:outputText value="#{UserMgr.currentAddress.streetNumber}" />
           	
           	<h:outputLabel value="Città: " />
           	<h:outputText value="#{UserMgr.currentAddress.city}" />
           	
           	<h:outputLabel value="Provincia: " />
           	<h:outputText value="#{UserMgr.currentAddress.district}" />
           	
           	<h:outputLabel value="Nazione: " />
           	<h:outputText value="#{UserMgr.currentAddress.nation}" />
           	
           	<!--  <h:commandButton action="" value="Modifica" />-->
           	
        </h:panelGrid>

	 </h:form>
</div>
</h:body>
</html>